package num2;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.sun.jmx.snmp.Timestamp;

public class Datee {
public static void main(String[] args) {
	 Date date = new Date();
	// System.out.println(date.getTime());
	// System.out.println(date.getDate());
   Timestamp timestamp=null;
	System.out.println(new Timestamp(date.getTime()));
	 SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	System.out.println(System.currentTimeMillis());
	timestamp = new Timestamp(System.currentTimeMillis());
    String nowTime=format.format(timestamp);
	System.out.println(nowTime);
    //String time=format.format(date);
  // System.out.println(time);
   //timestamp=timestamp.valueOf(time);
	//System.out.println(timestamp);*/
}
}
